🐛 OCPBUGS-78092: fix: stale deprecation conditions after ClusterExtension upgrade#2590
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Refresh deprecation status after a successful apply so that upgrading from a deprecated bundle to a non-deprecated one clears Deprecated and BundleDeprecated conditions in the same reconciliation cycle. Generated-by: Cursor/Claude
cb1e03d to
5b0ea47
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2590 +/- ##
==========================================
+ Coverage 67.78% 67.84% +0.05%
==========================================
Files 137 137
Lines 9574 9578 +4
==========================================
+ Hits 6490 6498 +8
+ Misses 2585 2583 -2
+ Partials 499 497 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Problem
When upgrading a ClusterExtension from a deprecated bundle (for example v1.0.1) to a non-deprecated bundle (for example v1.0.3), the deprecation conditions stay wrong.
Why this happens:
Solution
After a successful apply (when rollout is done):
We also store the deprecation data in reconcile state so it can be reused after apply.
Before
Reconcile:
Status:
install.bundle: v1.0.3 ✅ correct
Deprecated: True ("v1.0.1...") ❌ wrong
BundleDeprecated: True ❌ wrong
After
Reconcile:
→ refresh deprecation using new bundle
Status:
install.bundle: v1.0.3 ✅ correct
Deprecated: False ✅ correct
BundleDeprecated: False ✅ correct
Note
This fix is only for the Helm path.
For Boxcutter path, no change is needed: